Class RouterImpl

All Implemented Interfaces:
IPCObject, CiscoDevice, Device, Router
Direct Known Subclasses:
WirelessRouterImpl

public class RouterImpl extends CiscoDeviceImpl implements Router
Information provided by the PKI file:

    \class Router
    
    \brief Router is the base class for all router devices.
    
    \example network().getDevice("Router0")
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • addSubInt

      public boolean addSubInt(String portName, int subIntNum)
      Information provided by the PKI file:
      
          \brief Adds a subinterface to the specified port.
          
          \param portName,    portName can be one of the following plus a port number where appropriate:
          Console, Aux, Ethernet, FastEthernet, GigabitEthernet,
          Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async.
          Example: FastEthernet0/0
          \param subIntNum, the subinterface number.
          
              
      Specified by:
      addSubInt in interface Router
      Parameters:
      portName - Takes in a parameter of portName
      subIntNum - Takes in a parameter of subIntNum
      Returns:
      boolean Returns a boolean
    • removeSubInt

      public boolean removeSubInt(String portName)
      Information provided by the PKI file:
      
          \brief Removes the subinterface from the specified port.
          
          \param portName,    portName can be one of the following plus a port number where appropriate:
          Console, Aux, Ethernet, FastEthernet, GigabitEthernet,
          Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async.
          Example: FastEthernet0/0
          
              
      Specified by:
      removeSubInt in interface Router
      Parameters:
      portName - Takes in a parameter of portName
      Returns:
      boolean Returns a boolean
    • changePortEncapsulation

      public boolean changePortEncapsulation(String portname, String encapsulationType)
      Information provided by the PKI file:
      
          \brief Changes the encapsulation on the specified port.
          
          \param portName,    portName can be one of the following plus a port number where appropriate:
          Console, Aux, Ethernet, FastEthernet, GigabitEthernet,
          Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async.
          Example: FastEthernet0/0
          \param encapsulationType,   the encapsulation type.
          Encapsulation types: hdlc, ppp, frameRelay, arpa, dot1Q
          
          \return bool, true if successful, otherwise false.
          
              
      Specified by:
      changePortEncapsulation in interface Router
      Parameters:
      portname - Takes in a parameter of portname
      encapsulationType - Takes in a parameter of encapsulationType
      Returns:
      boolean Returns a boolean
    • addUserPass

      public void addUserPass(String username, String password, int type)
      Information provided by the PKI file:
      
          \brief Adds a user account.
          
          \param username, the username.
          \param password, the password.
          \param int, the type.
          
              
      Specified by:
      addUserPass in interface Router
      Parameters:
      username - Takes in a parameter of username
      password - Takes in a parameter of password
      type - Takes in a parameter of type
    • removeUserPass

      public void removeUserPass(String username)
      Information provided by the PKI file:
      
          \brief Removes the specified user account.
          
          \param username, the username of interest.
          
              
      Specified by:
      removeUserPass in interface Router
      Parameters:
      username - Takes in a parameter of username
    • getUserPass

      public String getUserPass(String username)
      Information provided by the PKI file:
      
          \brief Returns the password of the specified username.
          
          \param username, the username of interest.
          
          \return string, the password of the specified username.
          
              
      Specified by:
      getUserPass in interface Router
      Parameters:
      username - Takes in a parameter of username
      Returns:
      String Returns a String
    • getUserPassCount

      public int getUserPassCount()
      Information provided by the PKI file:
      
          \brief Returns the number of user accounts.
          
          \return int, the number of user accounts.
          
              
      Specified by:
      getUserPassCount in interface CiscoDevice
      Specified by:
      getUserPassCount in interface Router
      Overrides:
      getUserPassCount in class CiscoDeviceImpl
      Returns:
      int Returns a int
    • getClassMapManager

      public ClassMapManager getClassMapManager()
      Information provided by the PKI file:
      
          \brief Returns the class map manager.
          
          \return ClassMapManager, the ClassMapManager object.
          
              
      Specified by:
      getClassMapManager in interface Router
      Returns:
      ClassMapManager Returns a ClassMapManager
    • getPolicyMapManager

      public PolicyMapManager getPolicyMapManager()
      Information provided by the PKI file:
      
          \brief Returns the policy map manager.
          
          \return PolicyMapManager, the PolicyMapManager object.
          
              
      Specified by:
      getPolicyMapManager in interface Router
      Returns:
      PolicyMapManager Returns a PolicyMapManager
    • getParameterMapManager

      public ParameterMapManager getParameterMapManager()
      Information provided by the PKI file:
      
          \brief Returns the parameter map manager.
          
          \return ParameterMapManager, the ParameterMapManager object.
          
              
      Specified by:
      getParameterMapManager in interface Router
      Returns:
      ParameterMapManager Returns a ParameterMapManager
    • getNetflowMonitorManager

      public FlowMonitorManager getNetflowMonitorManager()
      Information provided by the PKI file:
      
          \brief Returns the flow monitor manager.
          
          \return FlowMonitorManager, the FlowMonitorManager object.
          
              
      Specified by:
      getNetflowMonitorManager in interface Router
      Returns:
      FlowMonitorManager Returns a FlowMonitorManager
    • getNetflowRecordManager

      public FlowRecordManager getNetflowRecordManager()
      Information provided by the PKI file:
      
          \brief Returns the flow record manager.
          
          \return FlowRecordManager, the FlowRecordManager object.
          
              
      Specified by:
      getNetflowRecordManager in interface Router
      Returns:
      FlowRecordManager Returns a FlowRecordManager
    • getNetflowExporterManager

      public NFExporterManager getNetflowExporterManager()
      Information provided by the PKI file:
      
          \brief Returns the NetFlow exporter manager.
          
          \return NFExporterManager, the NFExporterManager object.
          
              
      Specified by:
      getNetflowExporterManager in interface Router
      Returns:
      NFExporterManager Returns a NFExporterManager